/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commonClasses.commonInterfaces;

import java.io.File;
import java.net.InetAddress;
import java.util.ArrayList;

/**
 *
 * @author Pozytywny!
 */
public interface ClientModelIntf {
    public void updateSerwerItems(
            InetAddress ip, int port, ArrayList<ItemIntf> itemList);

    public void updateSerwerItem(
            InetAddress ip, int port, ItemIntf item);

    public void updateSerwerItemPrice(
            InetAddress ip, int port, ItemIntf item);

    public void updateSerwerItemFiles(InetAddress ip, int port, Long itemID,
            ArrayList<String> fileList);

    public ArrayList<ServerIntf> getServers();

    public ArrayList<ItemIntf> getServerItems(InetAddress ip, int port) throws
            Exception;

    public String getIdentifier();

    public void setIdentifier(String ident);
    
    public ServerIntf getServerByAddAndPort(InetAddress ip, int port);
}
